package com.abysshal.icarte.datamodel.obj;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="t_menu")

public class Menu {
	private Long id;
	private String name;
	private int price;
	private String description;
	private int rank;
	private String origPic;
	private String thumbPic;
	private boolean onsale;
	private Date startSaleTime;
	
	@Id
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getPrice() {
		return price;
	}
	public void setPrice(int price) {
		this.price = price;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public int getRank() {
		return rank;
	}
	public void setRank(int rank) {
		this.rank = rank;
	}
	public String getOrigPic() {
		return origPic;
	}
	public void setOrigPic(String origPic) {
		this.origPic = origPic;
	}
	public String getThumbPic() {
		return thumbPic;
	}
	public void setThumbPic(String thumbPic) {
		this.thumbPic = thumbPic;
	}
	public boolean isOnsale() {
		return onsale;
	}
	public void setOnsale(boolean onsale) {
		this.onsale = onsale;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(nullable=false)
	public Date getStartSaleTime() {
		return startSaleTime;
	}
	public void setStartSaleTime(Date startSaleTime) {
		this.startSaleTime = startSaleTime;
	}
	
	
}
